import styles from "./index.module.scss";
// import { useRouter } from "next/router";
import { useNavigate } from "react-router-dom";


const TitleWhithLine = ({ title }) => {
	const navigate = useNavigate();
	return (
		<div className={styles.linkTitle} onClick={() => {
			navigate('/second')
		}}>
			{title}
		</div>
	)
}
export default TitleWhithLine
